package com.jn.jetpack.views;

import android.content.Intent;
import android.view.View;
import android.widget.Button;

import com.jn.jetpack.R;
import com.jn.jetpack.base.BaseActivity;
import com.jn.jetpack.widget.CircleImageView;

public class MusicActivity extends BaseActivity implements View.OnClickListener {
    private Button mNext;
    private CircleImageView mView;

    @Override
    public int getLayoutId() {
        return R.layout.activity_music;
    }

    @Override
    public void init() {
        mNext = findViewById(R.id.button);
        mView = findViewById(R.id.image);
        getLifecycle().addObserver(mView);
        mNext.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        Intent intent = new Intent(MusicActivity.this, NewsActivity.class);
        startActivity(intent);
    }
}